using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Attachments
{
    /// <summary>
    /// <para>Downgrade Attachments</para>
    /// <para>Downgrades the attachments functionality of a feature class or table.</para>
    /// <para>降级要素类或表的附件功能。</para>
    /// </summary>    
    [DisplayName("Downgrade Attachments")]
    public class DowngradeAttachments : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public DowngradeAttachments()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_dataset">
        /// <para>Input Dataset</para>
        /// <para>The feature class or table that will have its attachments functionality downgraded.</para>
        /// <para>将对其附件功能进行降级的要素类或表。</para>
        /// </param>
        public DowngradeAttachments(object _in_dataset)
        {
            this._in_dataset = _in_dataset;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Downgrade Attachments";

        public override string CallName => "management.DowngradeAttachments";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_dataset, _out_dataset];

        /// <summary>
        /// <para>Input Dataset</para>
        /// <para>The feature class or table that will have its attachments functionality downgraded.</para>
        /// <para>将对其附件功能进行降级的要素类或表。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_dataset { get; set; }


        /// <summary>
        /// <para>Output Dataset</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_dataset { get; set; }


        public DowngradeAttachments SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}